<include file="header" />
<script type="text/javascript">
	$(function(){
		$('a[rel*=facebox]').facebox();
		$('#file_upload').uploadify({
			'uploader'		: '__PUBLIC__/swf/uploadify.swf',
			'script'		: '/index.php?s=/ajax/upload/',
			'cancelImg'		: '/uploadify/cancel.png',
			'folder'		: '__PUBLIC__/uploads',
			'queueID'		: 'upload_queue',
			'multi'			: true,
			'queueSizeLimit': 5,
			'auto'			: true,
			'onComplete'	: function(event, ID, fileObj, response, data) {
			var str = '<li><input name="images[]" type="text" value="'+response+'" size="50"/> ';
				str += '[<a rel="facebox" title="点击查看图片" href="__PUBLIC__/uploads/'+response+'">预览</a> ]';
				str += 	'[<a class="del_image" iid="'+response+'">删除</a>]</li>';
				$("#image_list").append(str);
				$('a[rel*=facebox]').facebox();
			}
		});
	})
</script>
<div id="content">
<form method="post" action="__URL__/upload">
	<table width="98%" class="manager_public_tab" align="center" width="80%" border="0" cellpadding="0" cellspacing="1" >
		<tr>
			<td>活动名称</td>
			<td>{$activity_info.name}</td>
		</tr>
		<tr>
			<td>旅游照片</td>
			<td>
				<div id="image_list">
					<volist name="activity_info.picture_urls" id="vo">
						<li>
							<input type="text" size="50" value="{$vo}" name="images[]"> 
							[<a href="/Public/uploads/{$vo}" title="点击查看图片" rel="facebox">预览</a> ]
							[<a iid="2012-05-07/4fa798b108991.jpg" class="del_image">删除</a>]
						</li>
					</volist>
				</div>
				<input id="file_upload" type="file"/>
			</td>
		</tr>
		<tr>
			<td colspan="2" align="center"><input type="submit"></td>
		</tr>
	</table>
	<input type="hidden" name="id" value="{$activity_info.id}" />
</form>
</div>
<include file="footer" />